﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ТХИ4;

namespace lb5
{
    public partial class Собираем_букет : Form
    {
        PotAndDecFlowers PAD = new PotAndDecFlowers();
        //Bouquet BouDecAndPot = PAD.Create();

        public Собираем_букет()
        {
            InitializeComponent();
            comboBox1.Text = "0";
            comboBox2.Text = "0";
            comboBox3.Text = "0";
            comboBox4.Text = "0";
            comboBox5.Text = "0";
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void Собираем_букет_Load(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {
           
        }

        private void label2_Click(object sender, EventArgs e)
        {
            
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            
        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Bouquet BouDecAndPot = PAD.Create();
            SumPrice Sum = new SumPrice();
            int all = Sum.SumAllPrice(BouDecAndPot, Convert.ToInt32(comboBox2.Text), Convert.ToInt32(comboBox4.Text), Convert.ToInt32(comboBox5.Text), Convert.ToInt32(comboBox1.Text), Convert.ToInt32(comboBox3.Text));

            label.Text = "ОБЩАЯ СТОИМОСТЬ: ";
            label7.Text = all + " рублей";
        }

        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }
    }
}
